//
//  Fraction.h
//  02-ClassAndObject
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 LST. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
/**分子*/
@property (nonatomic, assign) NSInteger numerator;
/**分母*/
@property (nonatomic, assign) NSInteger denominator;

- (instancetype)initWithNum:(NSInteger)num
                       Deno:(NSInteger)deno;

+ (instancetype)fracWithNum:(NSInteger)num
                       Deno:(NSInteger)deno;

- (Fraction *)addFraction:(Fraction *)anotherFraction;
- (Fraction *)subFraction:(Fraction *)anotherFraction;
- (Fraction *)mulFraction:(Fraction *)anotherFraction;
- (Fraction *)divFraction:(Fraction *)anotherFraction;


@end




